﻿/*-----------------------------------------------
// File: LoginEnter.cs
// Description: 
// Author: Shaobing	492057342@qq.com
-----------------------------------------------*/
using UnityEngine;
using System.Collections;

namespace Login
{
    public class LoginEnter : Fsm.FsmStateMonoBase<LoginState>
    {
        LoginManager manager = null;
        public LoginEnter(LoginState state, LoginManager ctrl) : base(state, ctrl) { manager = ctrl; }
        public override void Enter()
        {
            Debug.Log("loginEnter");
            NetAPI.InitHttp(GetServerUrl());
            manager.SwitchState(LoginState.CheckVersion);
        }
        string GetServerUrl()
        {
            string url = ServerConfig.GetServerUrl();
           
                // url = ServerConfig.GetServerUrl();//9000,外部，9001，内部 "
                //url = @"http://119.29.55.96:8081/sao/";
                //url = "http://djsy.sail2world.com/sao/";
               //http://119.29.55.96/sao/"; // 
           
                 //url = ServerConfig.GetServerUrl();
                //url = "http://118.194.236.13:9001/sao/";
         
           
            return url;
        }

    }
}
